package com.yzyz.utils.json;

import java.sql.Date;

import net.sf.json.JsonConfig;

import com.yzyz.bean.scenic.DescriptionBean;
import com.yzyz.utils.json.processor.DateProcessor;

public class JSONDescription extends DescriptionBean {

	private static final long serialVersionUID = 8524621064682172486L;
	
	public JsonConfig getConfig(){
		String excludes [] = {"config"};
		JsonConfig config = new JsonConfig();
		config.registerJsonValueProcessor(Date.class, new DateProcessor());
		config.setExcludes(excludes);
		return config;
	}

}
